import { HttpUrlVariable } from '@/constants'
import type { PatientForm } from '@/types/archive'
import type { EmptyObject } from '@/types/user'
import RequestHttp from '@/utils/request'

export const getArchiveDetailAPI = (id: string) =>
  RequestHttp.get<EmptyObject>(`${HttpUrlVariable.ARCHIVE_DETAIL_URL}${id}`)

// 更新接口
export const updateArchiveAPI = (data: PatientForm) =>
  RequestHttp.put<null, PatientForm>(HttpUrlVariable.ARCHIVE_UPDATE_URL, data)
